<template>
  <div class="ui home">
    <div class="ui very relaxed items list-container blog-list-container">
      <div class="item blog-item">
        <div class="content">
          <router-link to="/article/1" class="header" target="_blank">
            webpack 根据环境配置打包
          </router-link>
          <div class="description">
            <p class="line-clamp">开发环境下，Vue 会提供很多警告来帮你对付常见的错误与陷阱。而在生产环境下，这些警告语句却没有用，反而会增加应用的体积。此外，有些警告检查还有一些小的运行时开销，这在生产环境模式下是可以避免的。</p>
          </div>
          <div class="extra">
            <div class="ui horizontal list">
              <div class="item">
                <router-link to="/u/100004" target="_blank">少侠</router-link>
              </div>

              <div class="item">1分钟前</div>

              <div class="item">
                <i class="eye icon"></i>
                5
              </div>

              <div class="item">
                <i class="comment outline icon"></i>
                0
              </div>

              <div class="item">
                <i class="like outline icon"></i>
                0
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="item blog-item">
        <div class="content">
          <router-link to="/article/1" class="header" target="_blank">
            webpack 根据环境配置打包
          </router-link>
          <div class="description">
            <p class="line-clamp">开发环境下，Vue 会提供很多警告来帮你对付常见的错误与陷阱。而在生产环境下，这些警告语句却没有用，反而会增加应用的体积。此外，有些警告检查还有一些小的运行时开销，这在生产环境模式下是可以避免的。</p>
          </div>
          <div class="extra">
            <div class="ui horizontal list">
              <div class="item">
                <router-link to="/u/100004" target="_blank">少侠</router-link>
              </div>

              <div class="item">1分钟前</div>

              <div class="item">
                <i class="eye icon"></i>
                5
              </div>

              <div class="item">
                <i class="comment outline icon"></i>
                0
              </div>

              <div class="item">
                <i class="like outline icon"></i>
                0
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'home'
  }
</script>

<style scoped>
  .home {
    position: fixed;
    text-align: left;
    margin: 0 auto;
    width: 1040px;
    padding: 10px 60px;
  }
  ul {
    list-style-type: none;
  }
  .extra {
    display: block;
    color: rgba(0,0,0,.4);
    margin: .5rem 0 0;
  }
  p {
    word-break: break-all;
    word-wrap: break-word;
  }
  .line-clamp {
    overflow: hidden;
  }

</style>
